#if !defined(AFX_TICKTABLEGRID_H__20B92169_EDC5_419D_BA52_2DC40BAB86A1__INCLUDED_)
#define AFX_TICKTABLEGRID_H__20B92169_EDC5_419D_BA52_2DC40BAB86A1__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TickTableGrid.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CTickTableGrid window
#include "ugctrl.h"
class CMainOrderPanel;

class CPositionInfo;
class CTickTableGrid : public CUGCtrl
{
// Construction
public:
	CTickTableGrid();
	void SetPositionInfo(CPositionInfo* a_Posi);
// Attributes
public:
	CMainOrderPanel* m_pMainWnd;
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTickTableGrid)
	//***** Over-ridable Notify Functions *****
	virtual void OnSetup();
	virtual void OnCharDown(UINT *vcKey, BOOL processed);
	virtual void OnLClicked(int col, long row, int updn, RECT *rect, POINT *point, int processed);
	virtual int OnEditStart(int col, long row, CWnd **edit);
	//virtual int OnEditVerify(int col, long row, CWnd *edit, UINT *vcKey);
	virtual int OnEditFinish(int col, long row, CWnd *edit, LPCTSTR string, BOOL cancelFlag);
	//virtual int OnEditContinue(int oldcol, long oldrow, int* newcol, long* newrow);

	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CTickTableGrid();

	// Generated message map functions
protected:
	//{{AFX_MSG(CTickTableGrid)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TICKTABLEGRID_H__20B92169_EDC5_419D_BA52_2DC40BAB86A1__INCLUDED_)
